<?php
class Invoice_model extends CI_MODEL
	{
		public function __construct()
			{
				parent::__construct();
				$this->load->database();
				
			}
		function populate_data($id)
			{
				
				$query = $this->db->get_where('tasks',array('project_id' => $id));
				return $query->result_array();
			}
			
		function count_row()
			{
				$query = $this->db->count_all('tasks');
				return $query;
			}
		
			
	}
?>